package com.tbit.uqbike.client.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 退款新旧切换开关配置类
 *
 * @author <a href="mailto:zhang.zhiliang@tbit.com.cn">Zhang ZhiLiang</a>
 * @version 1.0
 * @see <a href="http://adsl1.tbit.com.cn:21490/pages/viewpage.action?pageId=82182491">订单号规范</a>
 * @since 2024/8/7
 */
@Data
@RefreshScope
@Configuration("refundSwitchConfig")
public class RefundSwitchConfig {

    /** 新退款配置 */
    public static final String REFUND_NEW = "refundNew";
    /** 老退款配置 */
    public static final String REFUND_OLD = "refundOld";
    /** 借车校验退款中订单开关 */
    public static final String REFUND_PENDING_BORROW_LIMIT = "pendingBorrow";

    /** nacos 配置的退款模式 */
    @Value("${refund.model:refundNew}")
    private String refundModel;

    /** nacos 配置的退款模式 */
    @Value("${borrow.limit.model:notLimit}")
    private String borrowLimit;
}
